package com.ruoyi.merchant.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商家活动对象 merchant_activities
 * 
 * @author ruoyi
 * @date 2025-09-17
 */
public class MerchantActivities extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id主键 */
    private Integer id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Integer mid;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 预览图/视频 */
    @Excel(name = "预览图/视频")
    private String img;

    /** 内容介绍 */
    @Excel(name = "内容介绍")
    private String content;

    /** 截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 咨询电话 */
    @Excel(name = "咨询电话")
    private String telephone;

    /** 阅读量 */
    @Excel(name = "阅读量")
    private Integer num;

    /** 上架状态 */
    @Excel(name = "上架状态")
    private Integer upStatus;

    /** 状态 */
    @Excel(name = "状态")
    private Integer verify;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer del;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setMid(Integer mid) 
    {
        this.mid = mid;
    }

    public Integer getMid() 
    {
        return mid;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }

    public void setNum(Integer num) 
    {
        this.num = num;
    }

    public Integer getNum() 
    {
        return num;
    }

    public void setUpStatus(Integer upStatus) 
    {
        this.upStatus = upStatus;
    }

    public Integer getUpStatus() 
    {
        return upStatus;
    }

    public void setVerify(Integer verify) 
    {
        this.verify = verify;
    }

    public Integer getVerify() 
    {
        return verify;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("mid", getMid())
            .append("time", getTime())
            .append("img", getImg())
            .append("content", getContent())
            .append("endTime", getEndTime())
            .append("telephone", getTelephone())
            .append("num", getNum())
            .append("upStatus", getUpStatus())
            .append("verify", getVerify())
            .append("del", getDel())
            .toString();
    }
}
